using UnityEngine;

public class ExplosionForce : MonoBehaviour
{
	public float explodeForce = 100f;

	public float explodeRange = 20f;

	private void OnTriggerEnter(Collider col)
	{
		if ((bool)col.GetComponent<Rigidbody>())
		{
			col.GetComponent<Rigidbody>().AddExplosionForce(explodeForce, base.transform.position, explodeRange, 2f, ForceMode.Impulse);
		}
	}
}
